package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.YxRechargeOrdersMapper;
import com.ruoyi.system.domain.YxRechargeOrders;
import com.ruoyi.system.service.IYxRechargeOrdersService;

/**
 * 充值订单Service业务层处理
 * 
 * @author lingyu
 * @date 2024-04-03
 */
@Service
public class YxRechargeOrdersServiceImpl implements IYxRechargeOrdersService 
{
    @Autowired
    private YxRechargeOrdersMapper yxRechargeOrdersMapper;

    /**
     * 查询充值订单
     * 
     * @param id 充值订单主键
     * @return 充值订单
     */
    @Override
    public YxRechargeOrders selectYxRechargeOrdersById(Long id)
    {
        return yxRechargeOrdersMapper.selectYxRechargeOrdersById(id);
    }

    /**
     * 查询充值订单列表
     * 
     * @param yxRechargeOrders 充值订单
     * @return 充值订单
     */
    @Override
    public List<YxRechargeOrders> selectYxRechargeOrdersList(YxRechargeOrders yxRechargeOrders)
    {
        return yxRechargeOrdersMapper.selectYxRechargeOrdersList(yxRechargeOrders);
    }

    /**
     * 新增充值订单
     * 
     * @param yxRechargeOrders 充值订单
     * @return 结果
     */
    @Override
    public int insertYxRechargeOrders(YxRechargeOrders yxRechargeOrders)
    {
        return yxRechargeOrdersMapper.insertYxRechargeOrders(yxRechargeOrders);
    }

    /**
     * 修改充值订单
     * 
     * @param yxRechargeOrders 充值订单
     * @return 结果
     */
    @Override
    public int updateYxRechargeOrders(YxRechargeOrders yxRechargeOrders)
    {
        return yxRechargeOrdersMapper.updateYxRechargeOrders(yxRechargeOrders);
    }

    /**
     * 批量删除充值订单
     * 
     * @param ids 需要删除的充值订单主键
     * @return 结果
     */
    @Override
    public int deleteYxRechargeOrdersByIds(Long[] ids)
    {
        return yxRechargeOrdersMapper.deleteYxRechargeOrdersByIds(ids);
    }

    /**
     * 删除充值订单信息
     * 
     * @param id 充值订单主键
     * @return 结果
     */
    @Override
    public int deleteYxRechargeOrdersById(Long id)
    {
        return yxRechargeOrdersMapper.deleteYxRechargeOrdersById(id);
    }
}
